package com.cndatacom.teleweb.service.impl;

import com.cndatacom.teleweb.common.PaginationModel;
import com.cndatacom.teleweb.dao.IKnowledgeShareDao;
import com.cndatacom.teleweb.model.KnowledgeShare;
import com.cndatacom.teleweb.service.IKnowledgeShareService;

public class KnowledgeShareService implements IKnowledgeShareService {

	private IKnowledgeShareDao knowledgeShareDao;
	
	public IKnowledgeShareDao getKnowledgeShareDao() {
		return knowledgeShareDao;
	}

	public void setKnowledgeShareDao(IKnowledgeShareDao knowledgeShareDao) {
		this.knowledgeShareDao = knowledgeShareDao;
	}

	public boolean delKnowledgeShare(KnowledgeShare knowledgeShare) {
		return knowledgeShareDao.delKnowledgeShare(knowledgeShare);
	}

	public PaginationModel getAllKnowledgeShare(int offset, int pageSize) {
		return knowledgeShareDao.getAllKnowledgeShare(offset, pageSize);
	}

	public KnowledgeShare getKnowledgeShareById(int KnowledgeId) {
		return knowledgeShareDao.getKnowledgeShareById(KnowledgeId);
	}

	public KnowledgeShare saveOrUpdateKnowledgeShare(KnowledgeShare knowledgeShare) {
		return knowledgeShareDao.saveOrUpdateKnowledgeShare(knowledgeShare);
		
	}

}
